export const mixins = {

  data() {
    return {
     
    }; 
  },
    methods: {
        clickItem(name) { 
            console.log('父组件检测到动画播放完成');
            if (name == 'LiXinJi17' && this.eritems == 1 && this.taskstep == 3) { 
                // 
                this.tipstext = '离心机电源已开启'
                this.timer = setTimeout(() => { 
                    this.tipstext = ''
                    this.eritem = 2
                    clearTimeout(this.timer)
                },1000)
            }
            if (name == 'LiXinJi17' && this.eritems == 2 && this.taskstep == 3) { 
                // 
             this.eritems = 2.1
            }
             if ( (name == 'LiXinJi13_3' || name == 'LiXinJi13_2') && this.eritems == 2.1 && this.taskstep == 3) { 
                // 
             this.eritem = 3
             }
              if ( (name == 'LiXinJi36_2' || name == 'LiXinJi36_3') && this.eritems == 3 && this.taskstep == 3) { 
                // 
                  //   
                this.tipstext='样品数量不成偶数时，需对称放入同等质量的试管，保持离心时离心力平衡。'
                this.timer = setTimeout(() => { 
                    this.tipstext = ''
                    this.eritems = 3.1
                    clearTimeout(this.timer)
                },1000)
                 
              }
            if (name == 'LiXinJi4' && this.eritems == 3.1 && this.taskstep == 3) { 
                // 
             this.eritem = 4
            }
            if (name == '4' && this.eritems == 4 && this.taskstep == 3) { 
                // 
                this.szuiboxshow = true
                this.bztext='点击“+/-”按钮，设置离心时长为5min，离心转速为3500'
            }
            if (name == 'LiXinJi17' && this.eritems == 6 && this.taskstep == 3) { 
                // 
               this.eritems =6.1
            }
             if ((name == 'LiXinJi11_1'|| name=='LiXinJi12') && this.eritems == 6.1 && this.taskstep == 3) { 
                // 
              this.eritems =6.2
             }
              if (name == 'LiXinJi4' && this.eritems == 6.2 && this.taskstep == 3) { 
                // 
             this.eritems = 6.3
              }
            if (name == 'LiXinJi17' && this.eritems == 6.3 && this.taskstep == 3) { 
                // 
             this.eritem = 7
            }
              if (name == 'LiXinJi31_1' && this.eritems ==1 && this.taskstep == 4) { 
                // 
             this.eritem = 2
              }
            if (name == 'TuoGaiJi7' && this.eritems ==2 && this.taskstep == 4) { 
                this.tipstext ='已完成开盖'
             this.timer = setTimeout(() => {
                 this.tipstext = ''
                 this.taskfn(5)
                 clearTimeout(this.timer)
             }, 1000);
            }
         if (name == 'MeiMianFenXiYi9_3' && this.eritems ==5.1 && this.taskstep == 5) { 
                // 
             this.sjstep = 2
         }
        if (name == 'DianNao5' && this.eritems == 6 && this.taskstep == 5) { 
          this.eritems =6.1
        }
           
        if (name == 'MeiMianYi_DianYuan2' && this.eritems == 2 && this.taskstep == 5) { 
           this.sjstep = 2
        }
       
        }
        ,
        sjia() { 
            if (this.szuir < 5500) { 
                this.szuir +=500
            }
        },
        sjias() { 
           
            if (this.szuit < 5) { 
                this.szuit +=1
            }
        },  sjiaa() { 
             if (this.szuir > 500) { 
                this.szuir -=500
            }
        },
        sjiaas() { 
            if (this.szuit > 1) { 
                this.szuit -=1
            }
        }
    }
};